package com.softcits.hw;

import java.sql.SQLException;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.softcits.hw.db.DBConfig;
import com.softcits.hw.service.DBMetaDataService;
import com.softcits.hw.service.IUserService;

public class DBApplication {

    public static void main(String[] args) throws SQLException {
        AnnotationConfigApplicationContext ctx = 
                new AnnotationConfigApplicationContext(DBConfig.class);
        IUserService service = ctx.getBean(IUserService.class);
        //service.insertUser(1);
        //System.out.println("Done");
        
        DBMetaDataService dds = ctx.getBean(DBMetaDataService.class);
        System.out.println(dds);
        dds.getDesiredColumns();
        ctx.close();
    }
}
